import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: 'admin/version/fetch',
    method: 'post',
    data: data
  })
}

export function createVersion(data) {
  return request({
    url: 'api/version/add',
    method: 'post',
    data: data
  })
}

export function forbiddenVersion(data) {
  return request({
    url: 'api/version/forbidden',
    method: 'post',
    data: data
  })
}

export function deleteVersion(data) {
  return request({
    rul: 'api/version/delete',
    method: 'post',
    data: data
  })
}

export function invokeVersion(data) {
  return request({
    url: 'api/version/invoke',
    method: 'post',
    data: data
  })
}
